
public class Slower extends Obstruction{

	public Slower(int lif) {
		super(0, lif);
	}
public void act(){
		
		if(underenemy()){
			Enemy cartman =  getEnemy();
			cartman.setSpeed(cartman.getSpeed()-1);
			reduceLife();
			if(getLife() == 0)
				removeSelfFromGrid();
		}
	}
}
